package com.renbang.model.common;
/**
 * 
 * @description 分页类
 * @author chen
 * @date 2017-3-13
 */
public class Page {
private String order;
private String sort;
private Integer currpage=1;
private Integer size=10;
private Integer offset;
private Integer limit;
private Integer count;//总计
public Integer getCount() {
	return count;
}
public void setCount(Integer count) {
	this.count = count;
}
public String getOrder() {
	return order;
}
public void setOrder(String order) {
	this.order = order;
}
public String getSort() {
	return sort;
}
public void setSort(String sort) {
	this.sort = sort;
}
public Integer getCurrpage() {
	return currpage;
}
public void setCurrpage(Integer currpage) {
	if(currpage<=0){
		currpage=1;
	}
	this.currpage = currpage;
}
public Integer getSize() {
	return size;
}
public void setSize(Integer size) {
	this.size = size;
}
public Integer getOffset() {
	return offset;
}
public void setOffset(Integer offset) {
	this.offset = offset;
}
public Integer getLimit() {
	return limit;
}
public void setLimit(Integer limit) {
	this.limit = limit;
}
@Override
public String toString() {
	return "Page [order=" + order + ", sort=" + sort + ", currpage=" + currpage
			+ ", size=" + size + ", offset=" + offset + ", limit=" + limit
			+ ", count=" + count + "]";
}

}
